package com.jianbing.lakk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.lakk.mapper.LakkUserplaytimerecordMapper;
import com.jianbing.lakk.domain.LakkUserplaytimerecord;
import com.jianbing.lakk.service.ILakkUserplaytimerecordService;

/**
 * 玩耍记录表Service业务层处理
 * 
 * @author windbless
 * @date 2024-06-25
 */
@Service
public class LakkUserplaytimerecordServiceImpl implements ILakkUserplaytimerecordService 
{
    @Autowired
    private LakkUserplaytimerecordMapper lakkUserplaytimerecordMapper;

    /**
     * 查询玩耍记录表
     * 
     * @param userid 玩耍记录表主键
     * @return 玩耍记录表
     */
    @Override
    public LakkUserplaytimerecord selectLakkUserplaytimerecordByUserid(Long userid)
    {
        return lakkUserplaytimerecordMapper.selectLakkUserplaytimerecordByUserid(userid);
    }

    /**
     * 查询玩耍记录表列表
     * 
     * @param lakkUserplaytimerecord 玩耍记录表
     * @return 玩耍记录表
     */
    @Override
    public List<LakkUserplaytimerecord> selectLakkUserplaytimerecordList(LakkUserplaytimerecord lakkUserplaytimerecord)
    {
        return lakkUserplaytimerecordMapper.selectLakkUserplaytimerecordList(lakkUserplaytimerecord);
    }

    /**
     * 新增玩耍记录表
     * 
     * @param lakkUserplaytimerecord 玩耍记录表
     * @return 结果
     */
    @Override
    public int insertLakkUserplaytimerecord(LakkUserplaytimerecord lakkUserplaytimerecord)
    {
        return lakkUserplaytimerecordMapper.insertLakkUserplaytimerecord(lakkUserplaytimerecord);
    }

    /**
     * 修改玩耍记录表
     * 
     * @param lakkUserplaytimerecord 玩耍记录表
     * @return 结果
     */
    @Override
    public int updateLakkUserplaytimerecord(LakkUserplaytimerecord lakkUserplaytimerecord)
    {
        return lakkUserplaytimerecordMapper.updateLakkUserplaytimerecord(lakkUserplaytimerecord);
    }

    /**
     * 批量删除玩耍记录表
     * 
     * @param userids 需要删除的玩耍记录表主键
     * @return 结果
     */
    @Override
    public int deleteLakkUserplaytimerecordByUserids(Long[] userids)
    {
        return lakkUserplaytimerecordMapper.deleteLakkUserplaytimerecordByUserids(userids);
    }

    /**
     * 删除玩耍记录表信息
     * 
     * @param userid 玩耍记录表主键
     * @return 结果
     */
    @Override
    public int deleteLakkUserplaytimerecordByUserid(Long userid)
    {
        return lakkUserplaytimerecordMapper.deleteLakkUserplaytimerecordByUserid(userid);
    }
}
